x86/mm: Refactor mm-lock ordering constructs
authorTim Deegan <tim@xen.org>
Thu, 10 Nov 2011 11:12:35 +0000 (11:12 +0000)
committerTim Deegan <tim@xen.org>
Thu, 10 Nov 2011 11:12:35 +0000 (11:12 +0000)
commit5865e0c533b3ba76ff09e054d6c915dbfb16db64
tree2e6a5fde33fc29f539af10ebeae46489219708e7
parent75fb78ef661a5a94eafeab1fdb32ac0aa1315340
x86/mm: Refactor mm-lock ordering constructs

The mm layer has a construct to enforce locks are taken in a pre-
defined order, and thus avert deadlock. Refactor pieces of this
code for later use, no functional changes.

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/mm-locks.h